/**
 * @author: HenryDai
 * @Date: 2022/05/01 19:16
 * @description:
 */
public class LazySecurity {
    private static LazySecurity instance;

    LazySecurity(){

    }

    /**
     * 懒汉模式实现单例: 线程安全
     * @return
     */
    public static synchronized LazySecurity getInstance()
    {
        if(instance==null)
        {
            instance =  new LazySecurity();
        }
        return instance;
    }
}
